import config from "@/config"
import http from "@/utils/request"

export default {
	balance: {
		url: `${config.API_URL}/finance/balance`,
		name: "获取余额",
		get: async function (params) {
			return await http.get(this.url, params);
		}
	},
	withdrawal: {
		url: `${config.API_URL}/finance/withdrawal`,
		name: "余额提现",
		post: async function (params) {
			return await http.post(this.url, params);
		}
	},
	log: {
		list: {
			url: `${config.API_URL}/finance-log/list-page`,
			name: "获取财务明细列表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		action: {
			url: `${config.API_URL}/finance-log`,
			name: "用户操作",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		}
	},
}
